﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GameWeb.Models
{
    public class GameModel
    {
        public GameModel()
        {
            BaseSquareWidth = BaseSquareHeight = 20;
        }
        public int BaseSquareWidth {get; set;}
        public int BaseSquareHeight { get; set; }
        public int BoardWidth { get; set; }
        public int BoardHeight { get; set; }

        public int GameId { get; set; }

        public string TrayPiecesJson { get; set; }
        public string BoardPiecesJson { get; set; }
        public string CurrentUser { get; set; }
        public PlayerInfoModel[] PlayerNames { get; set; }
        public string CurrentTurnUser { get; set; }

        public int CurrentTurnNumber { get; set; }
        public int MatchPlayerTurnId { get; set; }

        public int RemainingPieces { get; set; }

        public string PlayerMovesJson { get; set; }
    }

    public class PlayerInfoModel
    {
        public string PlayerName { get; set; }
        public short Score {get; set;}
    }
}